#include "config.h"
#include "parse.h"
#include "client.h"
#include <iostream>

using namespace std;

namespace cget {

void print_help();
void print_version();

}

int main(int argc,char *argv[]) {

	try {
		cget::Config c;
		
		cget::parse(argc,argv,c);
		//c.printConfig();

		cget::client_ptr client = cget::Client::getClient(c);
		client->run();

	} catch(string& s) {
		cout << s << endl;
	}

	return 0;
}
